<?php

class Bid_AjaxController extends Bid_Library_Controller_Action
{
    public function init()
    {
        parent::init();

        $this->_model = new Model_BidItem();
        $options = array('label_class' => 'label1');
        $this->_form = new Bid_Form_Item($options);
    }
    
    public function productListAction()
    {
        $limit = 4;
        $page = $this->_getParam('page', 5);
        
        $this->_helper->layout()->disableLayout();
        $items = $this->_model->getArray($page, $limit);
        $this->view->assign('items', $items);
    }
}